def setvalue2txt(value,filepath='value.txt'):
    try:
        with open(filepath, 'w',encoding='utf-8') as file:
            file.write(value)
    except FileNotFoundError:
        print("文件不存在，无法写入")